package com.oren.Thread.study.day02;

/**
 * Created by IntelliJ IDEA.
 * User: wangshiwei
 * Date: 2018/8/6
 * Time: 13:46
 * describe:
 */
public class Main {

    public static void main(String[] args) {
        /*HasSelPrivateNum a1=new HasSelPrivateNum();
        ThreadaA a=new ThreadaA(a1);
        a.start();
        ThreadB b=new ThreadB(a1);
        b.start();*/
     /*   HasSelPrivateNum a1=new HasSelPrivateNum();
        HasSelPrivateNum a2=new HasSelPrivateNum();
        ThreadaA a=new ThreadaA(a1);
        a.start();
        ThreadB b=new ThreadB(a2);
        b.start();*/

        MyObject myObject=new MyObject();
        Thread1 thread1=new Thread1(myObject);
        thread1.setName("张三");
        thread1.start();
        Thread2 thread2=new Thread2(myObject);
        thread2.setName("李四");
        thread2.start();
    }
}
